//
//  Dog.m
//  王宇先_15_文件读写
//
//  Created by wyx on 16/3/29.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Dog.h"

@implementation Dog
/** 归档时调用此协议方法 */
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.col forKey:@"col"];
    [aCoder encodeObject:self.syl forKey:@"sty"];
}
/** 反归档时调用此协议方法 */
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        self.col = [aDecoder decodeObjectForKey:@"col"];
        self.syl = [aDecoder decodeObjectForKey:@"syl"];
    }
    return self;
}
@end
